import vue from '@vitejs/plugin-vue'

export default {
    base: './',
    plugins: [vue()],
    optimizeDeps: {
        include: ['schart.js']
    },
    server: {
    port: 9999,
    //host:'0.0.0.0',监测局域网和公网
    //代理---调用后端接口
    proxy: {
      '/api': {
        target: 'http://localhost:8080',//访问后端
        changeOrigin:true //是否跨域
      }
    }
  }
}